home *** CD-ROM | disk | FTP | other *** search
/ Internet.Works 41 / Issue 41.iso / pc / PCSoftware / XML Spy 3.5 / xmlspy35.exe / Main / Altova.xsd < prev    next >
Encoding:
Extensible Markup Language  |  2000-12-04  |  4.7 KB  |  123 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- edited with XML Spy v3.5 NT beta 1 build Nov 10 2000 (http://www.xmlspy.com) by Alexander Falk (Altova, Inc.) -->
  3. <xsd:schema targetNamespace="http://www.xmlspy.com/schemas/Altova/orgchart" xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns="http://www.xmlspy.com/schemas/Altova/orgchart">
  4.     <xsd:notation name="Altova-Orgchart" public="http://www.xmlspy.com/schemas/Altova/orgchart"/>
  5.     <xsd:complexType name="DivisionType">
  6.         <xsd:sequence>
  7.             <xsd:element name="Name" type="xsd:string"/>
  8.             <xsd:element name="Established" type="xsd:year" minOccurs="0"/>
  9.             <xsd:element name="URL" type="xsd:uriReference" minOccurs="0"/>
  10.             <xsd:element name="Manager" type="xsd:string" minOccurs="0"/>
  11.             <xsd:element name="Desc" type="xsd:string"/>
  12.             <xsd:element ref="Person" maxOccurs="unbounded"/>
  13.         </xsd:sequence>
  14.         <xsd:attribute name="ProfitCenter" use="required">
  15.             <xsd:simpleType>
  16.                 <xsd:restriction base="xsd:NMTOKEN">
  17.                     <xsd:enumeration value="no"/>
  18.                     <xsd:enumeration value="yes"/>
  19.                 </xsd:restriction>
  20.             </xsd:simpleType>
  21.         </xsd:attribute>
  22.     </xsd:complexType>
  23.     <xsd:element name="Altova">
  24.         <xsd:complexType>
  25.             <xsd:sequence>
  26.                 <xsd:element name="Name" type="xsd:string"/>
  27.                 <xsd:element name="Division" type="DivisionType" maxOccurs="unbounded"/>
  28.             </xsd:sequence>
  29.         </xsd:complexType>
  30.     </xsd:element>
  31.     <xsd:element name="Person" type="PersonType"/>
  32.     <xsd:element name="VIP" substitutionGroup="Person">
  33.         <xsd:annotation>
  34.             <xsd:documentation>A very important person working for the company</xsd:documentation>
  35.         </xsd:annotation>
  36.         <xsd:complexType>
  37.             <xsd:complexContent>
  38.                 <xsd:extension base="PersonType">
  39.                     <xsd:sequence>
  40.                         <xsd:element name="Club" type="xsd:string">
  41.                             <xsd:annotation>
  42.                                 <xsd:documentation>Association with a VIP or royal club</xsd:documentation>
  43.                             </xsd:annotation>
  44.                         </xsd:element>
  45.                     </xsd:sequence>
  46.                     <xsd:attribute name="IQ" use="required">
  47.                         <xsd:annotation>
  48.                             <xsd:documentation>IQ of VIPs are requried to be above 120</xsd:documentation>
  49.                         </xsd:annotation>
  50.                         <xsd:simpleType>
  51.                             <xsd:restriction base="xsd:int">
  52.                                 <xsd:minInclusive value="120"/>
  53.                             </xsd:restriction>
  54.                         </xsd:simpleType>
  55.                     </xsd:attribute>
  56.                 </xsd:extension>
  57.             </xsd:complexContent>
  58.         </xsd:complexType>
  59.     </xsd:element>
  60.     <xsd:complexType name="PersonType">
  61.         <xsd:annotation>
  62.             <xsd:documentation>A person working for the company</xsd:documentation>
  63.         </xsd:annotation>
  64.         <xsd:sequence>
  65.             <xsd:element name="ID">
  66.                 <xsd:annotation>
  67.                     <xsd:documentation>Unique identifier for each person</xsd:documentation>
  68.                 </xsd:annotation>
  69.                 <xsd:simpleType>
  70.                     <xsd:restriction base="xsd:ID">
  71.                         <xsd:pattern value="\p{L}{5}\d{2}"/>
  72.                     </xsd:restriction>
  73.                 </xsd:simpleType>
  74.             </xsd:element>
  75.             <xsd:element name="Last" type="xsd:string">
  76.                 <xsd:annotation>
  77.                     <xsd:documentation>Last (family) name of person</xsd:documentation>
  78.                 </xsd:annotation>
  79.             </xsd:element>
  80.             <xsd:element name="First" type="xsd:string">
  81.                 <xsd:annotation>
  82.                     <xsd:documentation>First (given) name of person</xsd:documentation>
  83.                 </xsd:annotation>
  84.             </xsd:element>
  85.             <xsd:element name="Title" type="xsd:string" minOccurs="0">
  86.                 <xsd:annotation>
  87.                     <xsd:documentation>Academic (or other) title</xsd:documentation>
  88.                 </xsd:annotation>
  89.             </xsd:element>
  90.             <xsd:element name="PhoneExt" type="xsd:int">
  91.                 <xsd:annotation>
  92.                     <xsd:documentation>Phone extension for direct dialing</xsd:documentation>
  93.                 </xsd:annotation>
  94.             </xsd:element>
  95.             <xsd:element name="EMail" type="emailType">
  96.                 <xsd:annotation>
  97.                     <xsd:documentation>E-Mail address on the Internet (must be in name@company.net format)</xsd:documentation>
  98.                 </xsd:annotation>
  99.             </xsd:element>
  100.         </xsd:sequence>
  101.         <xsd:attribute name="Mgr" type="xsd:boolean" use="required">
  102.             <xsd:annotation>
  103.                 <xsd:documentation>Is this person employed in a managerial role</xsd:documentation>
  104.             </xsd:annotation>
  105.         </xsd:attribute>
  106.         <xsd:attribute name="Prg" type="xsd:boolean" use="required">
  107.             <xsd:annotation>
  108.                 <xsd:documentation>Is this person capable of programming</xsd:documentation>
  109.             </xsd:annotation>
  110.         </xsd:attribute>
  111.         <xsd:attribute name="Des" type="xsd:boolean" use="optional">
  112.             <xsd:annotation>
  113.                 <xsd:documentation>Does this person have design authority</xsd:documentation>
  114.             </xsd:annotation>
  115.         </xsd:attribute>
  116.     </xsd:complexType>
  117.     <xsd:simpleType name="emailType">
  118.         <xsd:restriction base="xsd:string">
  119.             <xsd:pattern value="[\p{L}_]+(\.[\p{L}_]+)*@[\p{L}_]+(\.[\p{L}_]+)+"/>
  120.         </xsd:restriction>
  121.     </xsd:simpleType>
  122. </xsd:schema>
  123.